package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;

import java.util.List;

public interface MenuService {

    PageResult findPage(QueryPageBean pageBean)throws Exception;

    void add(Menu menu)throws Exception;

    void delete(int id, int level)throws Exception;

    Menu findById(int id)throws Exception;

    void update(Menu menu)throws Exception;

    Boolean checkMenuExist(String name)throws Exception;


    List<Menu> findParents();

    List<Menu> findAllMenu();

}
